
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@include file="../../context.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Edit Banner</title>
<%@include file="../common_Admin_imports.jsp"%>
<%@include file="../common_loding_imports.jsp"%>
<script type="text/javascript">
	$(document).ready(function() {
		$(".datepicker").datepicker({
			dateFormat : "dd/mm/yy"
		});
	});
</script>
</head>
<body>
	<div class="main_wrapper">
		<div class="header_wrapper">
			<div class="container-fluid">
				<div class="header_inner_wrapper clearfix">
					<div class="row-fluid">
						<div class="header_left span4">Banner Setup</div>
						<jsp:include page="../common_link.jsp" />
					</div>
				</div>
				<div class="content_wrapper">
					<div class="container-fluid">
						<div class="row-fluid">
							<div class="input_box_wrapper">
								<div class="input_box_wrapper_text_aery">
									<div class="span6">
										<form:form method="POST" commandName="banner"
											action="${pageContext.request.contextPath}/admin/bannerupload/edit/${banner.id}.html"
											class="form-horizontal">
											<div>${message}</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Start
													Date :</label>
												<div class="controls">
													<form:input path="startDate" cssClass="datepicker" />
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">End
													Date :</label>
												<div class="controls">
													<form:input path="endDate" cssClass="datepicker" />
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Banner
													Name :</label>
												<div class="controls">
													<form:input path="bannerName" />
												</div>
												<div class="controls">
													<form:errors path="bannerName" cssClass="error"></form:errors>
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Position
													Code :</label>
												<div class="controls">
													<form:input path="positionCode" />
												</div>
												<div class="controls">
													<form:errors path="positionCode" cssClass="error"></form:errors>
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Link :</label>
												<div class="controls">
													<form:input path="link" />
												</div>
												<div class="controls">
													<form:errors path="link" cssClass="error"></form:errors>
												</div>
											</div>
											<input class="btn btn-inverse save" type="submit"
												value="Save" />

											<div>Please select a file to upload :</div>
											<div>
												<input type="file" name="file" /><input
													class="btn btn-inverse save" id="btnSubmitAll"
													type="submit" value="upload" />
											</div>
										</form:form>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>
